home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_05
/
2n05062a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-03-25
|
204 b
|
18 lines
/*
* a traditional C implementation of strlen using
* subscript notation
*/
strlen(s)
char s[];
{
int i = 0;
while (s[i] != '\0')
++i;
return i;
}